using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;

public class SaveMenuOther : MonoBehaviour
{
    public Button Exit;
    GameObject displayPanel;

    private void Awake()
    {
        displayPanel = GameObject.Find("DisplayPanel").gameObject;
    }

    // Start is called before the first frame update
    void Start()
    {
        Exit.onClick.AddListener(() =>
        {
            SceneManager.LoadScene("Title");
        });
        //CloseSaveMenu();
    }

    // Update is called once per frame
    public void OpenSaveMenu()
    {
        gameObject.SetActive(true);
        displayPanel.SetActive(false);
    }public void CloseSaveMenu()
    {
        gameObject.SetActive(false);
        displayPanel.SetActive(true);
    }
}
